package com.qcby.aspect;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.List;

/**
 * 打印args属性
 *
 * @author cong.zhen
 * @date 2023/12/12
 */
@ConfigurationProperties(
        prefix = "log.args.print"
)
@Data
public class PrintArgsProperties {

    private boolean enabled = true;
    private List<String> ignoreArgsType = new ArrayList();
    private PrintType printType;
    private int printLength;
    private String template;

    public PrintArgsProperties() {
        this.printType = PrintType.JSON;
        this.printLength = 2048;
        this.template = "request url:{}, print method parameters:{}, return: {}, exception: {}, execution time: {} millisecond.";
    }

}
